#ifndef ROCKS_STORE_DB_H
#define ROCKS_STORE_DB_H

#include "rocksdb/db.h"
#include "rocksdb/options.h"
#include "KeyValueDB.h"

using namespace rocksdb;

class RocksStoreDB : public KeyValueDB {
public:

	string db_path; /* get from mds _conf_ */
	DB* db;
	Options options;

public:

  int open();
  int close();
  
  int set(string &key, string *value); //create or update
  int get(string &key, string *value);
  int remove(string &key);

  int multi_remove(string &key_prefix)
  {
    return 0;
  }
  RocksStoreDB(string path):
    db_path(path),
    db(NULL){}
  ~RocksStoreDB() {
    close();
    delete db; 
  }

};

#endif
